@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
    // min-width: 1600px;
    overflow-x: auto;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
  min-width: 1000px;
}
.filter-container {
  margin-bottom: 20px;
  text-align: center;
}

.el-drawer__header {
  margin-bottom: 20px;
  box-sizing: border-box;
  padding-bottom: 20px;
  border-bottom: 1px solid black;
  > :first-child {
    font-size: 24px;
  }
}
.elbtn-default{
  width: 200px;
  font-size: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"]{
    -moz-appearance: textfield;
}
.el-upload-list__item {
  transition: none !important;
}

.sn-default-dialog{
  .el-dialog__header{
    padding-left: 0px;
    .el-dialog__headerbtn{
      font-size: 22px;
      font-weight: bold;
    }
  }
  .setting-title{
    @include _display(flex);
    @include _align(center);
    .lt-line{
      width: 2px;
      height: 30px;
      background: #FF551A;
      margin-right: 30px;
    }
  }
}
.sn-radio{
  .el-radio__input.is-checked .el-radio__inner{
    border-color: #ff551a;
    background: #ff551a;
  }
  .el-radio__input.is-checked+.el-radio__label {
    color: #ff551a;
}
}
.sn-title{
  @include _display(flex);
  @include _align(center);
  &::before{
    content: '';
    display: block;
    height: 30px;
    width: 2px;
    background-color: #ff551a;
    margin-right: 15px;
  }
}
.sn-title-dialog{
  .el-dialog__header{
    padding-left: 0 ;
  }
}
.sn-flex{
  display: flex;
  -ms-display: flex;
  -moz-display: flex;
  -webkit-display: flex;
  -o-display: flex;
  align-items: center;
  -ms-align-items: center;
  -moz-align-items: center;
  -webkit-align-items: center;
  -o-align-items: center;
}
.sn-col-top{
  align-items: flex-start;
  -ms-align-items: flex-start;
  -moz-align-items: flex-start;
  -webkit-align-items: flex-start;
  -o-align-items: flex-start;
}
.sn-col-center{
  align-items: center;
  -ms-align-items: center;
  -moz-align-items: center;
  -webkit-align-items: center;
  -o-align-items: center;
}
.sn-col-bottom{
  align-items: flex-end;
  -ms-align-items: flex-end;
  -moz-align-items: flex-end;
  -webkit-align-items: flex-end;
  -o-align-items: flex-end;
}
.sn-row-start{
  justify-content: flex-start;
  -ms-justify-content:  flex-start;
  -moz-justify-content:  flex-start;
  -webkit-justify-content:  flex-start;
  -o-justify-content:  flex-start;
}
.sn-row-center{
  justify-content: center;
  -ms-justify-content: center;
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -o-justify-content: center;
}
.sn-row-end{
  justify-content: flex-end;
  -ms-justify-content: flex-end;
  -moz-justify-content: flex-end;
  -webkit-justify-content: flex-end;
  -o-justify-content: flex-end;
}
.sn-row-between{
  justify-content: space-between;
  -ms-justify-content: space-between;
  -moz-justify-content: space-between;
  -webkit-justify-content: space-between;
  -o-justify-content: space-between;
}
.sn-row-around{
  justify-content:  space-around;
  -ms-justify-content: space-around;
  -moz-justify-content: space-around;
  -webkit-justify-content: space-around;
  -o-justify-content: space-around;
}
.sn-hover{
  &:hover{
    color: #FF551A !important;
    cursor: pointer;
  }
}
.sn-line-1{
  overflow: hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


@media only screen and (min-width:992px){
  .hidden-sm-and-up{display:none!important}
  .sn-common-container{
    box-sizing: border-box;
    padding:24px;
  }
}
@media only screen and (max-width:992px){
  .hidden-sm-and-down{display:none!important}
  .sn-common-container{
    box-sizing: border-box;
    padding:0px;
  }
  .el-message-box__wrapper{
    .el-message-box{
      width: 370px;
    }
  }
  .sn-default-dialog{
    .el-dialog{
      width: 370px !important;
    }
  }
  .el-pagination{
    white-space: wrap !important;
  }
}
.sn-btn{
    color: #FFF;
    background-color: #ff551a;
    border-color: #ff551a;
    &:active{
      background-color: rgba(255, 83, 26, 0.798);
      border-color: rgba(255, 83, 26, 0.798);
    }
    &:hover{
      background-color: rgba(255, 83, 26, 0.798);
      border-color: rgba(255, 83, 26, 0.798);
    }
    &:focus{
      background-color: rgba(255, 83, 26, 0.798);
      border-color: rgba(255, 83, 26, 0.798);
    }
}
.sn-pagination{
  .el-pager li{
    background-color: #fff !important;
    border: 1px solid #D9D9D9;
    color: #000;
  }
  .el-pager li:not(.disabled):hover {
      color: #ff551a !important;
  }
  .el-pager li:not(.disabled).active {
      background-color: #fff !important;
      color: #ff551a !important;
      border: 1px solid #ff551a;
  }
  .el-pager li.active+li{
    border-left: 1px solid #D9D9D9 !important;
  }
}
.sn-default-dialog{
  .el-dialog__header{
    padding-left: 0px;
    .el-dialog__headerbtn{
      font-size: 22px;
      font-weight: bold;
    }
  }
  .el-dialog__body {
    padding-top: 0;
  }
  .setting-title{
    @include _display(flex);
    @include _align(center);
    .lt-line{
      width: 2px;
      height: 30px;
      background: #FF551A;
      margin-right: 30px;
    }
  }
}
.sn-must-label{
  position: relative;
  &::before{
    content: '*';
    position: absolute;
    left: -6px;
    top: -2px;
    color: #ff551a;
    font-size: 14px;
    font-weight: bold;
  }
}